import {request} from '@/utils/httprequest';

export function login(data) {
    return request({
        url: '/auth',
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'application/json'
        }
    })
}


export function register(data) {
    return request({
        url: '/user',
        method: 'post',
        data: data,
    })
}